package de.ciupka.minesweeper.game;

import java.awt.Dimension;

import javax.swing.JFrame;

import de.ciupka.minesweeper.controller.Controller;
import de.ciupka.minesweeper.options.OptionPanel;

public class GameFrame extends JFrame {
	
	private int width;
	private int height;
	
	
	public GameFrame(int width, int height) {
		updateFrameSize(width, height);
	}
	
	public GameFrame(Dimension size) {
		updateFrameSize(size);
	}
	
	public void startGUI() {
		setBounds(150, 150, width, height);
		setResizable(false);
		setContentPane(new GamePanel());
		setAlwaysOnTop(true);
	}
	
	public void updateFrameSize(int width, int height) {
		setSize(width, height);
	}
	
	public void updateFrameSize(Dimension size) {
		setSize(size);
	}
	
}
